package cn.forward.controller.manager.app;


import cn.dev33.satoken.annotation.SaIgnore;
import cn.forward.result.R;
import cn.forward.service.ICustomerService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "乘客注册",description = "乘客注册")
@RestController
@RequestMapping("/app/customer")
public class AppCustomerController {

    @Autowired
    private ICustomerService customerService;

    @Operation( summary= "乘客注册r",description = "乘客注册接口")
    @Parameter(name = "openIdCode",description = "注册需要的code",required = true)
    @GetMapping(value = "/register/{openIdCode}")
    @SaIgnore
    public R<Void> appSave(@PathVariable("openIdCode") String openIdCode ){

        customerService.register(openIdCode);

        return R.success();



    }


}



